<form action="admin" enctype="multipart/form-data" method="post">
<h3>Add a new user:</h3>
<p>
Email: <input type="text" size="30" name="email"><br>
First name: <input type="text" name="firstName"><br>
Last name: <input type="text" name="lastName"><br>
Gender: $genderDropdown(var="gender", var2="", options=gender_options)$<br>
Admin: <input type="checkbox" name="admin"><br>
No email: <input type="checkbox" name="disableEmail">
<br>
Profile picture:
<input type="file" name="profilePicture" size="40"><br>
<p>
<input type="submit" name="submit" value="Add user">
</form>

<p>

<a href="downloadArchive">Download archive with users and profile pictures</a><br>
<form action="uploadArchive" enctype="multipart/form-data" method="post">
Upload archive:
<input type="file" name="archive" size="40"><br>
<input type="submit" name="submit" value="Upload">
</form>

<p>

<form action="admin" enctype="multipart/form-data" method="post">
<h3>Users in group:</h3>
<p>
<input type="submit" name="submit" value="Save changes">

<table>
<tr>
 <th>Delete</th>
 <th>Email</th>
 <th>First</th>
 <th>Last</th>
 <th>Gender</th>
 <th>Admin</th>
 <th>No email</th>
 <th>Send invite</th>
 <th>Picture</th>
 <th>Upload</th>
</tr>
$users:{u|
<tr>
  <td style="text-align:center"><input type="checkbox" name="$u.key$_delete" value="" /></td>
  <td><input type="text" size="30" name="$u.key$_email" value="$u.email$"></td>
  <td><input type="text" name="$u.key$_firstName" value="$u.firstName$"></td>
  <td><input type="text" name="$u.key$_lastName" value="$u.lastName$"></td>
  <td>$genderDropdown(var=u.key, var2="_gender", options=u.genderDropdown)$</td>
  <td style="text-align:center"><input type="checkbox" name="$u.key$_admin" value="" $if(u.admin)$checked$endif$ /></td>
  <td style="text-align:center"><input type="checkbox" name="$u.key$_disableEmail" value="" $if(u.disableEmail)$checked$endif$ /></td>
  <td style="text-align:center"><input type="checkbox" name="$u.key$_sendInvite" value="" /></td>
  <td style="text-align:center">
  $if(u.profilePicture)$
  <img src="picture?t=$u.profilePictureMd5$" width="$u.profilePictureWidthHalf$" height="$u.profilePictureHeightHalf$">
  $else$
  No picture
  $endif$
  </td>
  <td>
  <input type="file" name="$u.key$_profilePicture" size="40"><br>
  </td>
</tr>
}$
</table>
</form>
